package com.clouddot.baipai.module;


import com.clouddot.baipai.contract.ISchoolFragmentContract;
import com.clouddot.baipai.model.SchoolFragmentModel;
import com.clouddot.baipai.presenter.SchoolFragmentPresenter;

import dagger.Module;
import dagger.Provides;

@Module
public class SchoolFragmentModule {

    private ISchoolFragmentContract.IView mView;

    public SchoolFragmentModule(ISchoolFragmentContract.IView view) {
        mView = view;
    }

    @Provides
    public ISchoolFragmentContract.IPresenter providerPresenter() {
        return new SchoolFragmentPresenter(mView, new SchoolFragmentModel(mView.getContext()));
    }
}
